package com.tiennt.android.callnotes.models.viewholders;

import com.tiennt.android.callnotes.R;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class ListContactsViewHolder {
	private View base;
	private ImageView imgvContactPhoto;
	private TextView tvContactName;

	public ListContactsViewHolder(View base) {
		this.base = base;
	}

	public ImageView getImgvContactPhoto() {
		if (imgvContactPhoto == null) {
			imgvContactPhoto = (ImageView) base
					.findViewById(R.id.imgvContactImage);
		}
		return imgvContactPhoto;
	}

	public TextView getTvContactName() {
		if (tvContactName == null) {
			tvContactName = (TextView) base.findViewById(R.id.tvContactName);
		}
		return tvContactName;
	}
}
